package com.ztsoft.user.pojo.vo;

import java.util.HashMap;

public class ResultData extends HashMap<String, Object> {

    /**
     * 列集合
     */
    private static final String COLUMNS_TAG = "columns";
    /**
     * 数据对象
     */
    private static final String DATA_TAG = "data";
    /**
     *
     */
    private static final String LABEL_WIDTH_TAG = "labelWidth";

    //表格配置
    private static final String TABLE_CONFIG_TAG = "tableConfig";
    //表单配置
    private static final String FORM_CONFIG_TAG = "formConfig";

    /**
     * 初始化一个新创建的 ResultData 对象，使其表示一个空消息。
     */
    public ResultData() {
    }

    public ResultData(TableInfo tableInfo) {
        super.put(TABLE_CONFIG_TAG, tableInfo);
    }

    public void setFormConfig(FormInfo formConfig) {
        super.put(FORM_CONFIG_TAG, formConfig);
    }

    public void setLabelWidth(Object labelWidth) {
        super.put(LABEL_WIDTH_TAG, labelWidth);
    }

    @Override
    public ResultData put(String key, Object value) {
        super.put(key, value);
        return this;
    }
}